package situ.autoweter.entity;

import com.alibaba.fastjson.JSONObject;
import java.util.*;
import java.time.*;
/**
 * PY_Pay实体类
 * 
 * @author 
 *
 */
public class PyPay {
	/***/
	private String PayNo; 
	/***/
	private String UserNo; 
	/***/
	private String PayType; 
	/***/
	private java.time.Instant PayDate; 
	/***/
	private String Invoice; 
	/***/
	private Double PayMoney; 
	/***/
	private Double UseMoney; 
	/***/
	private Integer EmpID; 
	/**
	 * 实例化
	 */
	public PyPay() {
		super();
	}
	/**
	 * 实例化
	 * 
	 * @param obj
	 */
	public PyPay(JSONObject obj) {
		this();
		if (obj.get("PayNo") instanceof String) {
			this.setPayNo((String) obj.get("PayNo"));
		}
		if (obj.get("UserNo") instanceof String) {
			this.setUserNo((String) obj.get("UserNo"));
		}
		if (obj.get("PayType") instanceof String) {
			this.setPayType((String) obj.get("PayType"));
		}
		if (obj.get("PayDate") instanceof java.time.Instant) {
			this.setPayDate((java.time.Instant) obj.get("PayDate"));
		}
		if (obj.get("Invoice") instanceof String) {
			this.setInvoice((String) obj.get("Invoice"));
		}
		if (obj.get("PayMoney") instanceof Number) {
			this.setPayMoney(((Number) obj.get("PayMoney")).doubleValue());
		}
		if (obj.get("UseMoney") instanceof Number) {
			this.setUseMoney(((Number) obj.get("UseMoney")).doubleValue());
		}
		if (obj.get("EmpID") instanceof Number) {
			this.setEmpID(((Number) obj.get("EmpID")).intValue());
		}
	}
	
	/**
	 * 将当前对象转换为JsonObject
	 * 
	 * @return
	 */
	public JSONObject toJson() {
		JSONObject result = new JSONObject();
		if (this.getPayNo() != null) {
			result.put("PayNo",this.getPayNo());
		}
		if (this.getUserNo() != null) {
			result.put("UserNo",this.getUserNo());
		}
		if (this.getPayType() != null) {
			result.put("PayType",this.getPayType());
		}
		if (this.getPayDate() != null) {
			result.put("PayDate",this.getPayDate());
		}
		if (this.getInvoice() != null) {
			result.put("Invoice",this.getInvoice());
		}
		if (this.getPayMoney() != null) {
			result.put("PayMoney",this.getPayMoney());
		}
		if (this.getUseMoney() != null) {
			result.put("UseMoney",this.getUseMoney());
		}
		if (this.getEmpID() != null) {
			result.put("EmpID",this.getEmpID());
		}
		return result;
	}
	
	
	/**
	 * 获取PayNo
	 * 
	 * @return
	 */
	public String getPayNo() {
		return PayNo;
	}

	/**
	 * 设置PayNo
	 * 
	 * @param PayNo
	 */
	public void setPayNo(String PayNo) {
		this.PayNo = PayNo;
	}
	
	/**
	 * 获取UserNo
	 * 
	 * @return
	 */
	public String getUserNo() {
		return UserNo;
	}

	/**
	 * 设置UserNo
	 * 
	 * @param UserNo
	 */
	public void setUserNo(String UserNo) {
		this.UserNo = UserNo;
	}
	
	/**
	 * 获取PayType
	 * 
	 * @return
	 */
	public String getPayType() {
		return PayType;
	}

	/**
	 * 设置PayType
	 * 
	 * @param PayType
	 */
	public void setPayType(String PayType) {
		this.PayType = PayType;
	}
	
	/**
	 * 获取PayDate
	 * 
	 * @return
	 */
	public java.time.Instant getPayDate() {
		return PayDate;
	}

	/**
	 * 设置PayDate
	 * 
	 * @param PayDate
	 */
	public void setPayDate(java.time.Instant PayDate) {
		this.PayDate = PayDate;
	}
	
	/**
	 * 获取Invoice
	 * 
	 * @return
	 */
	public String getInvoice() {
		return Invoice;
	}

	/**
	 * 设置Invoice
	 * 
	 * @param Invoice
	 */
	public void setInvoice(String Invoice) {
		this.Invoice = Invoice;
	}
	
	/**
	 * 获取PayMoney
	 * 
	 * @return
	 */
	public Double getPayMoney() {
		return PayMoney;
	}

	/**
	 * 设置PayMoney
	 * 
	 * @param PayMoney
	 */
	public void setPayMoney(Double PayMoney) {
		this.PayMoney = PayMoney;
	}
	
	/**
	 * 获取UseMoney
	 * 
	 * @return
	 */
	public Double getUseMoney() {
		return UseMoney;
	}

	/**
	 * 设置UseMoney
	 * 
	 * @param UseMoney
	 */
	public void setUseMoney(Double UseMoney) {
		this.UseMoney = UseMoney;
	}
	
	/**
	 * 获取EmpID
	 * 
	 * @return
	 */
	public Integer getEmpID() {
		return EmpID;
	}

	/**
	 * 设置EmpID
	 * 
	 * @param EmpID
	 */
	public void setEmpID(Integer EmpID) {
		this.EmpID = EmpID;
	}

	@Override
	public String toString() {
		return "PyPay [PayNo=" + PayNo + " , UserNo=" + UserNo + " , PayType=" + PayType + " , PayDate=" + PayDate + " , Invoice=" + Invoice + " , PayMoney=" + PayMoney + " , UseMoney=" + UseMoney + " , EmpID=" + EmpID + "  ]";
	
	}
	
	
}
